import axios from '@/libs/api.request'

export class SysWelfarePercentEmployeeCommercialConfigApi {
  static get (path, params = {}) {
    return request.get(path, createGETParams(params))
  }

  static post (path, params = {}) {
    return request.post(path, params)
  }

  // 根据条件获取员工商保参保信息配置(单个)
  static getList (params) {
    return axios.request({
      url: '/SysWelfarePercentEmployeeCommercialConfig/GetList',
      method: 'get',
      enctype: 'multipart/form-data',
      params: params
    })
  }

  // 根据条件获取员工商保参保信息配置(批量)
  static getBatchList (params) {
    return axios.request({
      url: '/SysWelfarePercentEmployeeCommercialConfig/GetBatchList',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 获取参保编号列表
  static getSecurityNoList (params) {
    return axios.request({
      url: '/SysWelfarePercentEmployeeCommercialConfig/GetSecurityNoList',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 保存商保编号参保信息配置(单个)
  static save (params) {
    return axios.request({
      url: '/SysWelfarePercentEmployeeCommercialConfig/Save',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 保存商保编号参保信息配置(批量)
  static batchSave (params) {
    return axios.request({
      url: '/SysWelfarePercentEmployeeCommercialConfig/BatchSave',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 删除商保编号参保信息配置(单个)
  static delete (params) {
    return axios.request({
      url: '/SysWelfarePercentEmployeeCommercialConfig/Delete',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 删除商保编号参保信息配置(批量)
  static batchDelete (params) {
    return axios.request({
      url: '/SysWelfarePercentEmployeeCommercialConfig/BatchDelete',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }
}
